Unexport HTTP proxy variables in autopkgtest
authorSimon McVittie <smcv@debian.org>
Tue, 3 Oct 2017 18:22:15 +0000 (19:22 +0100)
committerSimon McVittie <smcv@debian.org>
Tue, 3 Oct 2017 21:47:46 +0000 (22:47 +0100)
This works around lack of support for no_proxy, which breaks the tests on
Ubuntu autopkgtest. We don't actually need Internet access, so this is OK.

debian/changelog
debian/tests/gnome-desktop-testing

index 7bf642b062464d8e517d7d4684886fb1cc4a7851..69eaf56e0a3319330ffde8d0b88e995714c299c4 100644 (file)
@@ -5,6 +5,9 @@ ostree (2017.12-1) UNRELEASED; urgency=medium
     - Update symbols file
   * Add some post-release bug fix patches
   * Simplify autopkgtest now that test-local-pull seems to be stable
+  * Unexport HTTP proxy variables in autopkgtest to work around lack of
+    support for no_proxy, which breaks the tests on Ubuntu autopkgtest.
+    We don't actually need Internet access, so this is OK.
 
  -- Simon McVittie <smcv@debian.org>  Tue, 03 Oct 2017 19:14:14 +0100
 
index c6a077dd098f2fcb46670b392930b810d00e08cb..c85f13cf6a299449424501da8fbf6aea41e8a977 100755 (executable)
@@ -3,4 +3,12 @@
 set -e
 exec 2>&1
 
+# Ubuntu provides internet access via a proxy, but libostree doesn't need
+# that. However, libostree also doesn't support no_proxy, so it will try
+# to use Ubuntu's proxy for localhost, and fail to reach itself.
+unset ftp_proxy
+unset http_proxy
+unset https_proxy
+unset no_proxy
+
 exec gnome-desktop-testing-runner libostree